export const formComponentConfig = {
  dictSelect: () => import('@/common/components/dict-select/index.vue'),
  // dataPicker: () => import('./dataPicker.vue'),
  selectPersonal: () => import('@/common/components/search-modal/user.vue'),
};

export const formRenderConfig = {
  name1: {
    label: '订单号',
    field: 'sysOrderNo',
    componentName: 'input',
    componentProps: {},
  },
  name2: {
    label: '物料编码',
    field: 'mdsItemCode',
    componentName: 'inputModal',
    componentProps: {
      title: '物料编码',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
    },
  },
  name3: {
    label: '物料名称',
    field: 'mdsItemName',
    componentName: 'input',
    componentProps: {},
  },
  name4: {
    label: '机型',
    field: 'proMdsItemId',
    componentName: 'inputModal',
    componentProps: {
      title: '机型/产品',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
      defaultQuery: {
        materialType: '6',
        materialStatus: '1,3',
      },
    },
  },
  name5: {
    label: '执行状态',
    field: 'billStatus',
    componentName: 'dictSelect',
    componentProps: {
      dictType: 'assessBillStatus',
    },
  },
  name6: {
    label: '父型号',
    field: 'cpParentModelCode',
    componentProps: {
      title: '物料编码',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
    },
  },
  name7: {
    label: '型号',
    field: 'marqueName',
    componentName: 'inputModal',
    componentProps: {
      title: '型号',
      type: 'materialCode',
      valueName: 'modelMark',
      labelName: 'modelMark',
    },
  },
  name8: {
    label: '供应商',
    field: 'supplierCode',
    componentName: 'inputModal',
    componentProps: {
      title: '供应商',
      type: 'supplyName',
      labelName: 'supplierChinese',
      valueName: 'supplierCode',
    },
  },
  name9: {
    label: '是否有效',
    field: 'validFlag',
    componentName: 'dictSelect',
    componentProps: {
      dictType: 'YN',
    },
  },
  name10: {
    label: '暂估日期',
    field: 'name10',
    componentName: 'datePicker',
    componentProps: {
      format: 'YYYY-MM-DD',
    },
  },
  name11: {
    label: '牌号',
    field: 'marque',
    componentName: 'inputModal',
    componentProps: {
      title: '牌号',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
    },
  },
  name12: {
    label: '规格',
    field: 'specs',
    componentName: 'inputModal',
    componentProps: {
      title: '规格',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
    },
  },
  name13: {
    label: '质量编码',
    field: 'prtlotNo',
    componentName: 'input',
  },
  name15: {
    label: '图号外协码',
    field: 'transDrawingCode',
    componentName: 'input',
  },
  name16: {
    label: '机型外协码',
    field: 'transItemCode',
    componentName: 'input',
  },
  name17: {
    label: '确认人',
    field: 'commitUserName',
    componentName: 'selectPersonal',
    componentProps: {},
  },
};
